import http from '@/utils/http'

export interface IEnvironment {
    environmentid: number;
    test_environment: string;
}

export class EnvironmentService {
    static async getEnvironments() {
        return http.post({
            url: 'environment/select',
        })
    }

    static async getServerUsage() {
        return http.post({
            url: 'server/get_hardware_usage',
            data: {url: 'http://192.168.31.251:9988/get_hardware_usage'}
        })
    }
}